/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package classes;

import javax.swing.JOptionPane;
import javax.swing.UIManager;

/**
 *
 * @author Ervin James
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    
     static MainFrame frame;
   
    public static void main(String[] args) {

        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
        } catch (Exception e) {
            e.printStackTrace();
        }
       
     try{
     frame = new MainFrame();
        }
     catch(NullPointerException e)
     {
          JOptionPane.showMessageDialog(null, "Please make sure that MySQL Database Server is running.", "Error Message", JOptionPane.ERROR_MESSAGE);
     }
    }

}
